package com.zy.flow.compment;

import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeSwitchComponent;
import com.zy.annotation.RuleCmp;
import com.zy.enums.ElNameEnum;

/**
 * @author hanhuafeng
 * @version V1.0
 * @description
 * @date 2023/7/18
 */
@LiteflowComponent("SwitchComponent")
@RuleCmp(flowCmpId = "SwitchComponent", cmpType = ElNameEnum.SWITCH, defaultText = "选择")
public class SwitchComponent extends NodeSwitchComponent {
    @Override
    public String processSwitch() throws Exception {
        System.out.println("Acomp executed!");
        return "w1";
    }
}
